package com.company;

public class Extends {
    private String name;
    private int id;

    public Extends(String myName,int myId){
        name = myName;
        id = myId;
    };

    public void eat(){
        System.out.println(name+"正在吃");
    }
    public void sleep(){
        System.out.println(name+"正在睡");
    }

    public void print(){
       System.out.println("我是"+id+"号"+name);
    }

    public static void main(String[] args){

    }
}
